<script setup name="App" lang="ts">
import { ref } from 'vue'
import Child from './Child.vue';

const count = ref(1)

const addCount = (num: number) => {
  count.value += num
}

const age = ref(18)
</script>
<template>
  <div>
    App: {{count}} age: {{age}}
    <hr/>
    <Child :count="count" @change-count="addCount" @change-age="age+=$event"/>
  </div>
</template>
